Optimal. Leaf size=218 \[ \frac{1}{8} \left (\sqrt{1+\sqrt{4-2 \sqrt{2}}}+\sqrt{2+2 \sqrt [4]{2}+2 \sqrt{1+\sqrt{2}}+2 \sqrt{2+\sqrt{2}}}+\sqrt{1+\sqrt{4+2 \sqrt{2}}}\right ) \left (x-\tan ^{-1}(\tan (x))\right )+\frac{\tan ^{-1}\left (\sqrt{1-\sqrt [4]{-1}} \tan (x)\right )}{4 \sqrt{1-\sqrt [4]{-1}}}+\frac{\tan ^{-1}\left (\sqrt{1+\sqrt [4]{-1}} \tan (x)\right )}{4 \sqrt{1+\sqrt [4]{-1}}}+\frac{\tan ^{-1}\left (\sqrt{1-(-1)^{3/4}} \tan (x)\right )}{4 \sqrt{1-(-1)^{3/4}}}+\frac{\tan ^{-1}\left (\sqrt{1+(-1)^{3/4}} \tan (x)\right )}{4 \sqrt{1+(-1)^{3/4}}} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.200197, antiderivative size = 129, normalized size of antiderivative = 0.59, number of steps used = 9, number of rules used = 3, integrand size = 8, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.375, Rules used = {3211, 3181, 203} \[ \frac{\tan ^{-1}\left (\sqrt{1-\sqrt [4]{-1}} \tan (x)\right )}{4 \sqrt{1-\sqrt [4]{-1}}}+\frac{\tan ^{-1}\left (\sqrt{1+\sqrt [4]{-1}} \tan (x)\right )}{4 \sqrt{1+\sqrt [4]{-1}}}+\frac{\tan ^{-1}\left (\sqrt{1-(-1)^{3/4}} \tan (x)\right )}{4 \sqrt{1-(-1)^{3/4}}}+\frac{\tan ^{-1}\left (\sqrt{1+(-1)^{3/4}} \tan (x)\right )}{4 \sqrt{1+(-1)^{3/4}}} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 3211
Rule 3181
Rule 203
Rubi steps
\begin{align*} \int \frac{1}{1+\sin ^8(x)} \, dx &=\frac{1}{4} \int \frac{1}{1-\sqrt [4]{-1} \sin ^2(x)} \, dx+\frac{1}{4} \int \frac{1}{1+\sqrt [4]{-1} \sin ^2(x)} \, dx+\frac{1}{4} \int \frac{1}{1-(-1)^{3/4} \sin ^2(x)} \, dx+\frac{1}{4} \int \frac{1}{1+(-1)^{3/4} \sin ^2(x)} \, dx\\ &=\frac{1}{4} \operatorname{Subst}\left (\int \frac{1}{1+\left (1-\sqrt [4]{-1}\right ) x^2} \, dx,x,\tan (x)\right )+\frac{1}{4} \operatorname{Subst}\left (\int \frac{1}{1+\left (1+\sqrt [4]{-1}\right ) x^2} \, dx,x,\tan (x)\right )+\frac{1}{4} \operatorname{Subst}\left (\int \frac{1}{1+\left (1-(-1)^{3/4}\right ) x^2} \, dx,x,\tan (x)\right )+\frac{1}{4} \operatorname{Subst}\left (\int \frac{1}{1+\left (1+(-1)^{3/4}\right ) x^2} \, dx,x,\tan (x)\right )\\ &=\frac{\tan ^{-1}\left (\sqrt{1-\sqrt [4]{-1}} \tan (x)\right )}{4 \sqrt{1-\sqrt [4]{-1}}}+\frac{\tan ^{-1}\left (\sqrt{1+\sqrt [4]{-1}} \tan (x)\right )}{4 \sqrt{1+\sqrt [4]{-1}}}+\frac{\tan ^{-1}\left (\sqrt{1-(-1)^{3/4}} \tan (x)\right )}{4 \sqrt{1-(-1)^{3/4}}}+\frac{\tan ^{-1}\left (\sqrt{1+(-1)^{3/4}} \tan (x)\right )}{4 \sqrt{1+(-1)^{3/4}}}\\ \end{align*}
Mathematica [C] time = 0.147735, size = 141, normalized size = 0.65 \[ 8 \text{RootSum}\left [\text{$\#$1}^8-8 \text{$\#$1}^7+28 \text{$\#$1}^6-56 \text{$\#$1}^5+326 \text{$\#$1}^4-56 \text{$\#$1}^3+28 \text{$\#$1}^2-8 \text{$\#$1}+1\& ,\frac{2 \text{$\#$1}^3 \tan ^{-1}\left (\frac{\sin (2 x)}{\cos (2 x)-\text{$\#$1}}\right )-i \text{$\#$1}^3 \log \left (\text{$\#$1}^2-2 \text{$\#$1} \cos (2 x)+1\right )}{\text{$\#$1}^7-7 \text{$\#$1}^6+21 \text{$\#$1}^5-35 \text{$\#$1}^4+163 \text{$\#$1}^3-21 \text{$\#$1}^2+7 \text{$\#$1}-1}\& \right ] \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [C] time = 0.066, size = 71, normalized size = 0.3 \begin{align*}{\frac{1}{8}\sum _{{\it \_R}={\it RootOf} \left ( 2\,{{\it \_Z}}^{8}+4\,{{\it \_Z}}^{6}+6\,{{\it \_Z}}^{4}+4\,{{\it \_Z}}^{2}+1 \right ) }{\frac{ \left ({{\it \_R}}^{6}+3\,{{\it \_R}}^{4}+3\,{{\it \_R}}^{2}+1 \right ) \ln \left ( \tan \left ( x \right ) -{\it \_R} \right ) }{2\,{{\it \_R}}^{7}+3\,{{\it \_R}}^{5}+3\,{{\it \_R}}^{3}+{\it \_R}}}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{1}{\sin \left (x\right )^{8} + 1}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [F(-1)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Timed out} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-1)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Timed out} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F(-2)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Exception raised: TypeError} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]